package com.guchenbo.scala.c5

import scala.collection.mutable

/**
 * @author guchenbo
 * @date 2022/3/17
 */
object MapDemo {
  def main(args: Array[String]): Unit = {
    val map = Map(1 -> "a", 2 -> "b")
    val map2 = Map(12 -> "a", 22 -> "b")
    val map3 = mutable.Map(1 -> "a", 2 -> "b")
    val map4 = mutable.Map(11 -> "a", 22 -> "b")

    map + (12->"aa")
    map + ((12,"aa"))
    println(map(1))

    println((12->"aa").getClass)
    println((12,"aa").getClass)
  }
}
